package com.intco.ait.quotation.api.infrastructure.mybatis.entity.encodingPlatform;

import com.intco.ait.quotation.api.infrastructure.mybatis.entity.menu.MaterialCodingPropertySelectItem;
import lombok.Data;

import java.util.List;

/**
 * DTO that represents a MaterialCodingProperty together with optional select items
 * (used when ControlType indicates a dropdown/select).
 */
@Data
public class MaterialCodingPropertyWithItems {

    private Integer id;

    private Integer materialCodingClassId;

    private String propertyName;

    private String controlType;

    private Integer controlWidth;

    private Integer decimalDigits;

    private String prefix;

    private String suffix;

    private Integer sortId;

    private Boolean allowNull;

    private Boolean keepZero;

    private Boolean enabled;

    // When controlType is a dropdown/select, this will contain the options
    private List<MaterialCodingPropertySelectItem> selectItems;

}

